package com.study.test.demo.observer.general;

/**
 * 观察者模式-被观察者
 *
 * @Author hupengming
 * @ClassName ISubject
 * @Date 2023-03-14  15:07
 * @Version 1.0
 */
public interface ISubject<E> {

    boolean attach(IObserver<E> observer);

    boolean detach(IObserver<E> observer);

    void notify(E e);

}
